package com.ct.gd.passport.view.consult;

import android.os.Bundle;

import com.ct.gd.passport.R;
import com.ct.gd.passport.common.BaseActivity;
import com.ct.gd.passport.view.widget.CustomHeaderFragment;

public class MyConsultActivity extends BaseActivity {
	// private ConsultTagFragment mFgConsultTag;
	private ConsultCatalogFragment	mFgConsultCatalog;

	@Override
	protected void onBaseCreate(Bundle savedInstanceState) {
		setContentView(R.layout.my_consult);
	}

	@Override
	protected void initViews() {
		CustomHeaderFragment header = (CustomHeaderFragment) getFragmentManager().findFragmentById(R.id.header);
		header.setCenterText(R.string.advice_list_my);

		// mFgConsultTag = (ConsultTagFragment)
		// mFgMan.findFragmentById(R.id.area_root_catalog);
		mFgConsultCatalog = (ConsultCatalogFragment) getFragmentManager().findFragmentById(R.id.area_consult_catalog);
	}

	@Override
	protected void onAfterCreate(Bundle savedInstanceStat) {
		super.onAfterCreate(savedInstanceStat);
		// mFgConsultTag.registerOnRootChangedListener(mFgConsultCatalog);
		mFgConsultCatalog.loadCatalog();
	}
}
